#include<iostream>
using namespace std;
int n;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> n;
		if (n >= 5)cout << "Alice" << endl;
		else cout << "Bob" << endl;	
	}
	return 0;
}